extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]准时的怀表"
	info = "<固化>每8秒触发一次：2秒之内造成的技能伤害提高60%\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.air = 80
	att.atk = 80
	att.mgiAtk = 80
	att.maxHp = 500

var index = 0
func _upS():
	index += 1
	if index >= 8:
		index = 0
		masCha.addBuff(b_zhunshidehb.new())

func _connect():
	._connect()
	sys.main.connect("onBattleStart", self, "start")

func start():
	index = 0

class b_zhunshidehb:
	extends "../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_zhunshidehb"
		dispel = 2
		life = 2
	func _connect():
		masCha.connect("onAtkChara",self,"_onAtkChara")
	func _onAtkChara(atkInfo):
		if atkInfo.atkType == sys.AtkType.SKILL:
			atkInfo.factor += 0.6


func upgrade():
	name = "[color=#FFFF00][史诗]准时的怀表"
	info = "<固化>每8秒触发一次：2秒之内造成的技能伤害提高60%"
	att.air = 160
	att.atk = 160
	att.mgiAtk = 160
	att.maxHp = 1000

